package cn.pro.entity;

import cn.pro.entity.qo.ProUserQuery;
import cn.pro.utils.Desc;
import lombok.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;




@Data
@Entity
@Builder
@NoArgsConstructor()
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@Table ( name ="pro_log_info" )
public class ProLogInfo extends ProUserQuery implements Serializable{
private static final long serialVersionUID = 1L;

  @Column(name = "id" )
  @Id
  @Desc("主键")
  private String id;

  @Column(name = "uid" )
  @Desc("操作用户id")
  private String uid;

  @Column(name = "uname" )
  @Desc("操作用户名")
  private String uname;

  @Column(name = "from_ip" )
  @Desc("操作人的机器ip")
  private String fromIp;

  @Column(name = "operate_func" )
  @Desc("操作的功能，例如：登录、插入记录等等")
  private String operateFunc;

  @Column(name = "visit_method" )
  @Desc("调用入口的方法")
  private String visitMethod;

  @Column(name = "log_type" )
  @Desc("日志类型:error/info/warn")
  private String logType;

  @Column(name = "uri" )
  @Desc("访问路径")
  private String uri;

  @Column(name = "method" )
  @Desc("请求方法:post/get/put/delete/head")
  private String method;

  @Column(name = "visit_method_error_info" )
  @Desc("访问方法的错误信息")
  private String visitMethodErrorInfo;

  @Column(name = "status" )
  @Desc("该记录是否有效，1：有效、0：无效")
  private Integer status;

  @Column(name = "login_out_time" )
  @Desc("登录时间")
  private java.util.Date loginOutTime;

  @Column(name = "create_time" )
  @Desc("创建时间")
  private java.util.Date createTime;

  @Column(name = "update_time" )
  @Desc("更新时间")
  private java.util.Date updateTime;


public static  void main(String[] args){System.out.println(MapperGenerator.genMapper(ProLogInfo.class));}


}
